package com.zhou.mapper;

import com.zhou.entity.TheoQues;
import com.zhou.entity.TheoQuesAns;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 题目信息表 Mapper 接口
 * </p>
 *
 * @author admin
 * @since 2023-03-02
 */
@Repository
public interface TheoQuesAnsMapper extends BaseMapper<TheoQuesAns> {

    @Select("select distinct contend,analysis from theo_ques_ans where ques_id = #{quesId}")
    List<TheoQuesAns> selectByQuesId(int quesId);

    TheoQuesAns selectByQuesIdAndcontent(int ques_id,String contend);
}
